// 导入封装好的网络请求类工具
import request from '../../../../utils/request';
// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);

//查询
export const FindWellStructureByCondition = (searchModel) => {
    return request({
        url: '/wellStructure/findWellStructureByCondition',
        // url: '/wellStructure/findWellStructureByCondition/',
        method: 'post',
        data: searchModel
    })

}

//编辑
export const EditWellStructure = (form) => {
    return request({
        url: '/wellStructure/updateOneWellStructure',
        method: 'put',
        data: form
    })
}

//删除
export const DeleteWellStructure = (id) => {
    return request({
        url: `/wellStructure//deleteOneWellStructure/${id}`,
        method: 'delete'
    })
}

//新增

export const AddWellStructure = (form) =>{
    return request({
        url : '/wellStructure/insertOneWellStructure',
        method:'post',
        data : form
    })
}